草庐IT

android INSTALL_FAILED_MISSING_SHARED_LIBRARY

全部标签

php - 谷歌通讯录 API : RetrivePhoto query failed - invalid contact ID

我正在尝试根据thisdocument使用GoogleContactsAPI检索联系人的照片.使用的PHP客户端库是here.成功获取代码和用户信息,但获取用户照片数据失败。我得到的回复是:Photoqueryfailed-invalidcontactID.这是我用来获取用户照片数据的回调函数的PHP代码:$client=newGoogle_Client();$client->setClientId(GOOGLE_APP_CLIENT_ID);$client->setClientSecret(GOOGLE_APP_CLIENT_SECRET);$client->setRedirectU

php - require(public_html/mywebsite/wp-includes/post.php) 第 142 行的 :failed to open stream: permission denied in public_html/mywebsite/wp-settings. php

我在wordpress中开发了一个网站。但现在我面临一个错误:require(public_html/mywebsite/wp-includes/post.php):failedtoopenstream:permissiondeniedinpublic_html/mywebsite/wp-settings.phponline142==================================================================Fatalerror:require():Failedopeningrequired'/public_html/mywebsit

PHP gnupg 'import failed'

我一直在尝试在PHP中使用gnupg来加密将上传到ftp文件夹的文件。我目前在使用MAMP的Mac上运行,我相信gnupg已正确安装。我有一个来自文件接收者的公钥,当我尝试以字符串文字或文本文件的形式导入key时,我从gnupg收到了神秘的“导入失败”消息。$gpg=newgnupg();$gpg->seterrormode(gnupg::ERROR_EXCEPTION);$gpg->import($key);//throwsexception'importfailed'对于key导入失败的原因,是否有更好的资源?使用GPGSuite,我可以成功导入key,所以我相信key是正确的

php - Telegram + PHP (Windows 7) : failed to open stream: HTTP request failed! HTTP/1.1 404 未找到

我正在尝试迈出Telegram的第一步,我也是PHP的新手......我已经在我的Windows7电脑上配置了带有PHP5.6.14和SSL的Apache2.4,它在http和https中运行良好。然后我尝试遵循此TelegramBot教程https://www.youtube.com/watch?v=hJBYojK7DO4.一切正常,直到我不得不创建一个像这样的简单PHP程序时";$website="https://api.telegram.org/bot".$botToken;$update=file_get_contents($website."/getUpates");prin

php - 在 Laravel 5.3 下使用带有 mongo-php-library 2.2 驱动程序的 Gridfs

我们使用PHP7,最新的MongoDBPECL包(1.2.2)-Laravel5.3-jenssegers/laravel-mongodb3.1我想使用GridFS。它通常在MongoDBPECL包中可用,但没有文档或工作代码示例。 最佳答案 您可以使用Bucket类将文档上传和下载到mongo-php-library2.2驱动程序上的mongodb网格。//uploadfile$bucket=\DB::connection('mongodb')->getMongoDB()->selectGridFSBucket();$resour

php - 连接失败 : php_network_getaddresses: getaddrinfo failed: System error

Connectfailed:php_network_getaddresses:getaddrinfofailed:Systemerror“系统错误”部分真让我失望。几个月来我一直在与这个错误作斗争,它是零星的。它似乎来self的数据库连接器。重新启动php-fpm似乎可以缓解大约24小时的问题,直到它再次开始出现问题。我原以为它可能会用php-fpm攻击maxchildren,但在检查php-fpm状态后,事实并非如此。我已经尝试将错误与应用程序的syslog和nginx错误日志相关联,但我的想法已经用完了。关于如何解决此问题的任何想法? 最佳答案

php - 列出依赖特定 GitHub repository/library/dependency 的所有存储库

有没有办法发现所有具有特定存储库Foo/Bar作为依赖项的公共(public)GitHub存储库?我对PHP上下文很感兴趣(因此主要与Composer相关)。我想知道是否有一些特定于Composer的(可能依赖于Packagist?)或一些通用的解决方案。 最佳答案 鉴于您的具体要求,我过去这样做的一种方法是使用Google'sGitHubDataforBigQuery.例如,此查询将返回所有包含composer.lock文件并在其中提交了Foo/Bar的存储库。SELECTf.repo_nameFROM[bigquery-publ

php - 无法下载 "https://getcomposer.org/versions"文件 : SSL operation failed with code 1. OpenSSL 错误消息:错误:1416F086

我正在尝试在Windows上安装composer,但出现以下错误:The"https://getcomposer.org/versions"filecouldnotbedownloaded:SSLoperationfailedwithcode1.OpenSSLErrormessages:error:1416F086:SSLroutines:tls_process_server_certificate:certificateverifyfailedFailedtoenablecryptofailedtoopenstream:operationfailed.这是怎么回事,我该如何解决?

php - Facebook 错误 "Missing redirect_uri parameter."

Kohana_Exception[0]:Errorfetchingremotehttps://graph.facebook.com/oauth/access_token?client_id=&client_secret=&code=&redirect_uri=http%3A%2F%2F%2Flogin%3Fmethod%3Dfboauth%26redirect_uri%3Dhttp%253A%252F%252F%252F[status400]{"error":{"type":"OAuthException","message":"Missingredirect_uriparameter

PHP:fopen 失败 "HTTP Request Failed",但响应 header 的状态代码为 200

我有一个PHP脚本,它应该连接到一个从代理列表中选择的代理并下载一个文件。一些代理(在200-400个工作代理中)工作完美,但其他的则不能,我无法找出原因。这里是通过代理连接的代码:$proxy=determine_proxy($proxyList);$proxyString='tcp://'.$proxy['ip'].':'.$proxy['port'];$userAgent=$userAgents[rand(0,$agentsCount-1)];//setupourheaders$hdrs=array('http'=>array('method'=>"GET",'header'=>